package com.ruoyi.supermarket.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.supermarket.domain.Goods;

import java.io.Serializable;

/**
 * 商品信息对象 commodity
 * 
 * @author lxl
 * @date 2024-07-21
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Commodity implements Serializable
{
    private static final long serialVersionUID = 1L;

    /** 商品id */
    @Excel(name = "商品id")
    private Long cid;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String cname;

    /** 商品价格 */
    @Excel(name = "商品价格")
    private Long cprice;

    /** 商品数量 */
    @Excel(name = "商品数量")
    private Long ccount;

    /** 商品图片 */
    @Excel(name = "商品图片")
    private String cimg;

    /** 商品状态 */
    @Excel(name = "商品状态")
    private String cstatus;

    /** 货物外键id */
    @Excel(name = "货物外键id")
//    private Goods goods;
    private Goods goods;

    /** 删除标记 */
    private Long deleted;


}
